﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BaseEntities;
using DataAccess;

namespace BussinessLogic
{
    public class CheckBalanceLogic
    {
        public decimal GetBalance(string CardNo)
        {
            try
            {
                CheckBalanceAccess cba = new CheckBalanceAccess();
                return cba.GetBalalance(CardNo);
            }
            catch (Exception)
            {
                return 0;
            }
        }

        public Account GetAccountCb(string CardNo)
        {
            try
            {
                Account account=new Account();
                CheckBalanceAccess cba = new CheckBalanceAccess();
                account = cba.GetAccountCb(CardNo);
                return account;
            }
            catch (Exception)
            {
                return null;
            }
        }
    }
}
